<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>『豪情』后台管理</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/admin_common.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/admin_main.css"/>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="index.html">首页</a></li>
                <li><a href="http://www.mycodes.net/" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#">管理员</a></li>
                <li><a href="#">修改密码</a></li>
                <li><a href="#">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('Admin/Goods/index');?>"><i class="icon-font">&#xe008;</i>商品列表</a></li>
                        <!-- <li><a href="design.html"><i class="icon-font">&#xe005;</i>博文管理</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe006;</i>分类管理</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe004;</i>留言管理</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe012;</i>评论管理</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe052;</i>友情链接</a></li>
                        <li><a href="design.html"><i class="icon-font">&#xe033;</i>广告管理</a></li> -->
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>系统管理</a>
                    <ul class="sub-menu">
                        <li><a href="system.html"><i class="icon-font">&#xe017;</i>系统设置</a></li>
                        <li><a href="system.html"><i class="icon-font">&#xe037;</i>清理缓存</a></li>
                        <li><a href="system.html"><i class="icon-font">&#xe046;</i>数据备份</a></li>
                        <li><a href="system.html"><i class="icon-font">&#xe045;</i>数据还原</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/jscss/admin/design/">作品管理</a><span class="crumb-step">&gt;</span><span>新增作品</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="<?php echo U('Goods/set');?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
                <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>">
                <table class="insert-tab" width="100%">
                    <tbody>
                    
                    <tr>
                        <th width="120"><i class="require-red">*</i>标题：</th>
                        <td>
                            <input class="common-text required" id="title" name="title" size="50" value="<?php echo ($data["title"]); ?>" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>市场价：</th>
                        <td><input class="common-text" name="price" size="30" type="text" value="<?php echo ($data["price"]); ?>"></td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>促销价：</th>
                        <td><input class="common-text" name="saleprice" size="30" type="text" value="<?php echo ($data["saleprice"]); ?>"><input class="common-text" name="unit" size="10" type="text" value="元/斤" ></td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>缩略图：</th>
                        <td>
                        <input name="img" id="" type="file">
                        <?php if($data[img]){ $src = getImgPath($data[img]); echo "<br><img src='$src' width='100' height='100'>"; } ?>
                        </td>
                    </tr>
                    <tr>
                        <th>内容：</th>
                        <td>
<!--                         <textarea name="content" class="common-textarea" id="content" cols="30" style="width: 80%;" rows="10"></textarea>
 -->                        <script id="content" name="content" type="text/plain" style="width:720px"><?php echo htmlspecialchars_decode($data[content]);?></script>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody></table>
            </form>
        </div>
    </div>

</div>
<script type="text/javascript"  src="__JS__/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__JS__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
var editor = UE.getEditor('content',{  
    //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个  
    toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','customstyle', 'paragraph', 'fontfamily', 'fontsize', '|','directionalityltr', 'directionalityrtl', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|','link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|','insertimage','preview',]],  
    //focus时自动清空初始化时的内容  
    //autoClearinitialContent:true,  
    //关闭字数统计  
    wordCount:false,  
    //关闭elementPath  
    //elementPathEnabled:true,  
    //默认的编辑区域高度  
    initialFrameHeight:300  
    //更多其他参数，请参考ueditor.config.js中的配置项  
});
</script>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript" src="__JS__/modernizr.min.js"></script>
<script type="text/javascript" src="__JS__/jquery-1.8.0.min.js"></script>